import { bindUserInfo, getUserInfo, login } from "../../../service/user";

Component({
    data: {},
    methods: {
        onLoad() {
            bindUserInfo(this)
        },
        onShow() {
            getUserInfo().then()
            this.getTabBar().init();
        },
        changeMenu() {
            this.getTabBar().changeMenu(2);
        },
        async onPullDownRefresh() {
            await getUserInfo()
            wx.stopPullDownRefresh()
        }
    },
})
